﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lm.Common.Auth.Role
{
    [Operation.Operation("{5F76D64A-30CD-4473-B3F0-E59B6D7E785C}", "获取角色列表", "")]
    public class RoleSelector : Operation.OperationBase
    {
        static RoleSelector()
        { Operation.OperationBase.CreateOperation(typeof(RoleSelector)); }

        public RoleSelector(string token)
            : base(token)
        { }

        public List<Model.Role> GetRoleList(params System.Linq.Expressions.Expression<Func<Model.Role,bool>>[] conditions)
        {
            return DAL.DALFactory.Create().Select<Model.Role>(conditions);
        }
    }
}
